package com.aop;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ProxyTest {

    @Test
    public void t1(){
        ClassPathXmlApplicationContext applicationContext=new ClassPathXmlApplicationContext("spring-aop.xml");
        TargetInterface target = (TargetInterface) applicationContext.getBean("target");
        target.method();
    }
}
